'use strict';
let db = uniCloud.database();
let dbCmd = db.command;
exports.main = async (event, context) => {
	return await db.collection("count").where({
		uid: event.uid,
		createtime: dbCmd.gt(event.timeObj.s).and(dbCmd.lt(event.timeObj.e))
	}).get();
};